| Conditions | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import Xdebug from '../extensions/php/xdebug' |
||
| 35 | enable = async (xdebug: Xdebug): Promise<boolean> => { |
||
| 36 | if (!(await xdebug.isInstalled())) { |
||
| 37 | info('Extension xdebug is not installed. Installing now...') |
||
| 38 | await xdebug.install() |
||
| 39 | } |
||
| 40 | |||
| 41 | // TODO: Enable auto start configuration for xdebug. |
||
| 42 | |||
| 43 | info('Enabling xdebug...') |
||
| 44 | await xdebug.enable() |
||
| 45 | |||
| 46 | return true |
||
| 47 | } |
||
| 67 | export default XdebugController |